import React from 'react';
import { Card, Button, Row } from 'antd';
import QueryToolBar from '../QueryToolBar';
import ExTable from '../ExTable/index.jsx';

export default class ListData extends React.Component {
  render() {
    const {
      queryToolBarProps={},
      tableProps={},
    } = this.props;
    const { formList=[] } = queryToolBarProps;
    return (
      <div>
        {formList.length > 0 ? (
          <QueryToolBar {...queryToolBarProps}></QueryToolBar>
        ) : null}
        <ExTable
          // scroll={{ y: 325 }}
          size="middle"
          {...tableProps}
          rowKey={ tableProps.rowKey || "id" }
        />
      </div>
    );
  }
}
